<template>
	<view class="out">
		<pubTitle :title="title" :page="indexpage" :time="time" :list="list" :user="user"></pubTitle>
		<navigator url="../list/list">新闻列表</navigator>
		<navigator url="../about/about" open-type="reLaunch">关于页面</navigator>
		<view class="box">
			<icon type="success" size="26"/>
		</view>
		<view>uniapp</view>
		<view>web前端开发</view>
		<text>nodejs</text>
		<text user-select="true" selectable>vuejs</text>	
		<button @click="godemo3">到demo3</button>
		<button type="primary">确认</button>
		<button size="mini" type="warn">确认提交</button>
		<button size="mini" type="warn" plain>确认提交</button>
		
		<scroll-view class="scroll" scroll-x scroll-y>
			<view class="group">
				<view class="item">
					111
				</view>
				<view class="item">
					111
				</view>
				<view class="item">
					111
				</view>
				<view class="item">
					111
				</view>
				<view class="item">
					111
				</view>
				<view class="item">
					111
				</view>
			</view>
		</scroll-view>
		<swiper class="swiper" autoplay circular interval="2000" indicator-dots indicator-color="#fff">
			<swiper-item class="item">
				<image src="/static/images/pic1.jpg" mode="aspectFill"></image>
			</swiper-item>
			<swiper-item class="item">
				<image src="/static/images/pic2.jpg" mode="aspectFill"></image>
			</swiper-item>
			<swiper-item class="item">
				<image src="/static/images/pic1.jpg" mode="aspectFill"></image>
			</swiper-item>
		</swiper>
		<video src="/static/images/bbx.mp4" :controls="false"></video>
		
	</view>
</template>

<script>
	export default {
		data(){
			return {
				title:"首页",
				indexpage:"indexpage",
				time:Date.now(),
				list:[4,5,6],
				user:{name:"大美女",age:21}
			}
		},
		methods:{
			godemo3(){
				uni.navigateTo({
					url:"../demo3/demo3?wd=123"
				})
			}
		}
	}
</script>

<style lang="scss">
	.out{
		.box{
			width: 200rpx;
		}
	}
	.scroll{
		border:1px solid red;
		box-sizing: border-box;
		height: 200rpx;
		.group{
			white-space: nowrap;
			.item{
				width: 220rpx;
				height: 220rpx;
				background: blueviolet;
				display: inline-block;
				margin-right: 10rpx;
			}
		}
	}
	.swiper{
		.item{
			padding: 0 20rpx;
			box-sizing: border-box;
			image{
				width: 100%;
				height: 1600rpx;
			}
		}
	}
</style>
